package com.xiangge.demo;

import com.xiangge.domain.Actor;
import com.xiangge.domain.Player;

public class OOPDemoTest {
    public static void main(String[] args) {
        // 创建运动员对象
        Player player = new Player();
        player.setName("健步如飞");
        player.setAge(20);
        player.setSex("男");
        player.setAction("短跑运动员");
        player.setScore("金牌,22秒30的好成绩");
        player.introduction();
        System.out.println("============================");
        // 创建演员对象
        Actor actor = new Actor();
        actor.setName("蔡徐坤");
        actor.setAge(20);
        actor.setSex("男");
        actor.setSchool("电影学院");
        actor.setCreation("黑子说话！");
        actor.introduction();
    }
}
